package game.scene.title;
import dgo.*;
import game.GlobalModel;
import game.scene.SceneStack;
import starruby.Texture;
import java.util.Hashtable;
import dgo.MyLib;

public class Scene extends game.scene.BaseScene{
  private GlobalModel _globalModel;
  private Texture _titleTexture;
  public Scene(GlobalModel globalModel){
    _globalModel = globalModel;
    _titleTexture = Texture.load("game/title");
    MyLib.playBGM(getClass(), "tick");
  }

  public void update(SceneStack stack){
    if(SimpleInput.isPressedNewly("ok")){
      stack.pop();
      stack.push(new game.scene.map.Scene(_globalModel, new Hashtable()));
    }
  }
    
  public void render(Texture s){
    s.renderTexture(_titleTexture, 0, 0);
  }
}